angular.module('Common')

.service('CommonEnum', [function(){
    return {
        //周期单位
        CycleUnit: {
            Year: {Value: 0, Text: '年'},
            Month: {Value: 1, Text: '月'},
            Week: {Value: 2, Text: '周'},
            Day: {Value: 3, Text: '日'},
            Hour: {Value: 4, Text: '时'},
            Minute: {Value: 5, Text: '分'},
            Second: {Value: 6, Text: '秒'}
        },
        //调度结束方式
        EndMode: {
            Forever: {Value: 0, Text: '永久执行'},
            Repeat: {Value: 1, Text: '重复次数'},
            EndTime: {Value: 2, Text: '结束时间'}
        },
        //调度状态
        ScheduleStatus: {
            No: {Value: 0, Text: '未执行'},
            Wait: {Value: 1, Text: '等待执行'},
            Execution: {Value: 2, Text: '执行中'},
            Complete: {Value: 3, Text: '完成'}
        }
    };
}]);

